
<?php if ($this->postEntry): $p = $this->postEntry; ?>

<div class="post-entry mg_bt_l">
  <div class="post-header">
<?php if ($p->hostLinkVisible === TRUE): ?>
A discussion at <a href="<?php echo $p->hostUrl; ?>"><?php echo $p->hostName; ?></a>
<?php endif; ?>
    <h2 class="mg_clr mg_bt_m"><?php echo $this->escape($p->title); ?></h2>
  </div>

<?php if (($this->commentOffset > 0) === FALSE): ?>

  <div class="post-entry">
  <div class="post-author"><img src="<?php echo $p->creatorAvatarUrl; ?>" alt="<?php echo $p->creatorName; ?>" /></div>
  <div class="post-content">
    <!--strong><?php echo $this->escape($p->title); ?></strong-->
    <div class="post-info"><small>
      <strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong> 
 &bull; <?php echo $this->relTimeString($p->time); ?>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
    </small></div>
    <div class="post-body"><?php echo $p->content; ?></div>
  </div>
  <div class="clear"></div>
  </div>

<?php endif; ?>

  <div>
<?php
	$reqParams = array(
		'post_host_class' => 'post.forum',
		'post_host_id' => $p->id,
		'post_class' => 'comment',
		'post_sort_mode' => 'oldest',
		'post_form_inline' => 1,
		'post_base_nav_url' => $p->url,
	);
	if ($this->commentOffset > 0) {
		$reqParams['post_list_start'] = $this->commentOffset;
	}
	echo $this->action('list', 'index', 'post', $reqParams);
?>
  </div>
</div>


<?php endif;
